package com.xqt.dao.area;


import com.xqt.base.dao.BaseDao;
import com.xqt.entity.area.Area;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Desc:
 * Author:liubo
 * Date: 2017-03-21 15:23
 **/
@Repository
public class AreaDao extends BaseDao<Area> {
    @Override
    public String getReadSql() {
        return "read.area.";
    }

    @Override
    public String getWriteSql() {
        return "write area.";
    }

    /**
     * 根据条件获取到区域信息
     * @param area
     * @return
     */
    public List<Area> getAreaList(Area area){
        return  readSqlSession.selectList(getReadSql()+"getAreaList",area);
    }
}
